<?php
namespace Common\Controller;
use Think\Controller;
class BaseController extends Controller {

    protected $http = null;


    /**
     * 架构函数 取得模板对象实例
     * @access public
     */
    public function __construct() {
        parent::__construct();
        \Org\Net\HttpRequests::init($http, array( 'debugging' => false , 'userAgent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36' ));
        if(!$this->http){
            $this->http = $http;
        }
    }

}